package org.bookie.core.services;

import javax.mail.MessagingException;

/**
 * Mail sending service
 * 
 * @author zubairov
 *
 */
public interface IMailSender {

	/**
	 * Sends email
	 * @param to
	 * @param message
	 * @throws MessagingException 
	 */
	public void sendEmail(String to, String subject, String message) throws MessagingException;
	
	/**
	 * Sends HTML Email with UTF-8 encoding
	 * 
	 * @param to
	 * @param subject
	 * @param htmlMessage
	 * @throws MessagingException
	 */
	public void sendHTMLEmail(String to, String subject, String htmlMessage) throws MessagingException;
	
}
